Non-XInput2 build fix
authorPatrick Welche <prlw1@cam.ac.uk>
Mon, 9 Jan 2012 11:27:28 +0000 (11:27 +0000)
committerPatrick Welche <prlw1@cam.ac.uk>
Tue, 10 Jan 2012 13:54:22 +0000 (13:54 +0000)
commit2ceb092afca29e6da870c81a67e9049497652689
treeeb514b585a104aa3c36c17a1c931e584ad0f603a
parentd05db5f5ff291abf8d81b2b60e69189db9e6101d
Non-XInput2 build fix

The part in gdkwindow-x11.c which uses XIEvent and friends is "protected"
by HAVE_XGENERICEVENTS, i.e., XGetEventData() has been found. (Xlib.h)

XIEvent and friends are defined in <X11/extension/XInput2.h> which is
included by gdkdisplay-x11.h if XINPUT_2 is defined.

The patch makes sure XIEvent is only used if XINPUT_2 is defined.

https://bugzilla.gnome.org/show_bug.cgi?id=667534
gdk/x11/gdkwindow-x11.c